﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class UnityEngineRenderingAsyncGPUReadbackWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(UnityEngine.Rendering.AsyncGPUReadback);
			Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
			
			
			
			
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "WaitAllRequests", _m_WaitAllRequests_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "Request", _m_Request_xlua_st_);
            
			
            
			
			
			
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            return LuaAPI.luaL_error(L, "UnityEngine.Rendering.AsyncGPUReadback does not have a constructor!");
        }
        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_WaitAllRequests_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    UnityEngine.Rendering.AsyncGPUReadback.WaitAllRequests(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Request_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<UnityEngine.ComputeBuffer>(L, 1)&& translator.Assignable<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 2)) 
                {
                    UnityEngine.ComputeBuffer _src = (UnityEngine.ComputeBuffer)translator.GetObject(L, 1, typeof(UnityEngine.ComputeBuffer));
                    System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest> _callback = translator.GetDelegate<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 2);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _callback );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 1&& translator.Assignable<UnityEngine.ComputeBuffer>(L, 1)) 
                {
                    UnityEngine.ComputeBuffer _src = (UnityEngine.ComputeBuffer)translator.GetObject(L, 1, typeof(UnityEngine.ComputeBuffer));
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& translator.Assignable<UnityEngine.GraphicsBuffer>(L, 1)&& translator.Assignable<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 2)) 
                {
                    UnityEngine.GraphicsBuffer _src = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 1, typeof(UnityEngine.GraphicsBuffer));
                    System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest> _callback = translator.GetDelegate<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 2);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _callback );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 1&& translator.Assignable<UnityEngine.GraphicsBuffer>(L, 1)) 
                {
                    UnityEngine.GraphicsBuffer _src = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 1, typeof(UnityEngine.GraphicsBuffer));
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& translator.Assignable<UnityEngine.Texture>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 3)) 
                {
                    UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture));
                    int _mipIndex = LuaAPI.xlua_tointeger(L, 2);
                    System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest> _callback = translator.GetDelegate<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 3);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _mipIndex, _callback );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& translator.Assignable<UnityEngine.Texture>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture));
                    int _mipIndex = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _mipIndex );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 1&& translator.Assignable<UnityEngine.Texture>(L, 1)) 
                {
                    UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture));
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 4&& translator.Assignable<UnityEngine.ComputeBuffer>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 4)) 
                {
                    UnityEngine.ComputeBuffer _src = (UnityEngine.ComputeBuffer)translator.GetObject(L, 1, typeof(UnityEngine.ComputeBuffer));
                    int _size = LuaAPI.xlua_tointeger(L, 2);
                    int _offset = LuaAPI.xlua_tointeger(L, 3);
                    System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest> _callback = translator.GetDelegate<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 4);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _size, _offset, _callback );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& translator.Assignable<UnityEngine.ComputeBuffer>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    UnityEngine.ComputeBuffer _src = (UnityEngine.ComputeBuffer)translator.GetObject(L, 1, typeof(UnityEngine.ComputeBuffer));
                    int _size = LuaAPI.xlua_tointeger(L, 2);
                    int _offset = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _size, _offset );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 4&& translator.Assignable<UnityEngine.GraphicsBuffer>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 4)) 
                {
                    UnityEngine.GraphicsBuffer _src = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 1, typeof(UnityEngine.GraphicsBuffer));
                    int _size = LuaAPI.xlua_tointeger(L, 2);
                    int _offset = LuaAPI.xlua_tointeger(L, 3);
                    System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest> _callback = translator.GetDelegate<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 4);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _size, _offset, _callback );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& translator.Assignable<UnityEngine.GraphicsBuffer>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    UnityEngine.GraphicsBuffer _src = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 1, typeof(UnityEngine.GraphicsBuffer));
                    int _size = LuaAPI.xlua_tointeger(L, 2);
                    int _offset = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _size, _offset );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 9&& translator.Assignable<UnityEngine.Texture>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& translator.Assignable<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 9)) 
                {
                    UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture));
                    int _mipIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _x = LuaAPI.xlua_tointeger(L, 3);
                    int _width = LuaAPI.xlua_tointeger(L, 4);
                    int _y = LuaAPI.xlua_tointeger(L, 5);
                    int _height = LuaAPI.xlua_tointeger(L, 6);
                    int _z = LuaAPI.xlua_tointeger(L, 7);
                    int _depth = LuaAPI.xlua_tointeger(L, 8);
                    System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest> _callback = translator.GetDelegate<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 9);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _mipIndex, _x, _width, _y, _height, _z, _depth, _callback );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 8&& translator.Assignable<UnityEngine.Texture>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) 
                {
                    UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture));
                    int _mipIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _x = LuaAPI.xlua_tointeger(L, 3);
                    int _width = LuaAPI.xlua_tointeger(L, 4);
                    int _y = LuaAPI.xlua_tointeger(L, 5);
                    int _height = LuaAPI.xlua_tointeger(L, 6);
                    int _z = LuaAPI.xlua_tointeger(L, 7);
                    int _depth = LuaAPI.xlua_tointeger(L, 8);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _mipIndex, _x, _width, _y, _height, _z, _depth );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 4&& translator.Assignable<UnityEngine.Texture>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.TextureFormat>(L, 3)&& translator.Assignable<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 4)) 
                {
                    UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture));
                    int _mipIndex = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.TextureFormat _dstFormat;translator.Get(L, 3, out _dstFormat);
                    System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest> _callback = translator.GetDelegate<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 4);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _mipIndex, _dstFormat, _callback );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& translator.Assignable<UnityEngine.Texture>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.TextureFormat>(L, 3)) 
                {
                    UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture));
                    int _mipIndex = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.TextureFormat _dstFormat;translator.Get(L, 3, out _dstFormat);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _mipIndex, _dstFormat );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 4&& translator.Assignable<UnityEngine.Texture>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 3)&& translator.Assignable<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 4)) 
                {
                    UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture));
                    int _mipIndex = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.Experimental.Rendering.GraphicsFormat _dstFormat;translator.Get(L, 3, out _dstFormat);
                    System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest> _callback = translator.GetDelegate<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 4);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _mipIndex, _dstFormat, _callback );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& translator.Assignable<UnityEngine.Texture>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 3)) 
                {
                    UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture));
                    int _mipIndex = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.Experimental.Rendering.GraphicsFormat _dstFormat;translator.Get(L, 3, out _dstFormat);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _mipIndex, _dstFormat );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 10&& translator.Assignable<UnityEngine.Texture>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& translator.Assignable<UnityEngine.TextureFormat>(L, 9)&& translator.Assignable<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 10)) 
                {
                    UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture));
                    int _mipIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _x = LuaAPI.xlua_tointeger(L, 3);
                    int _width = LuaAPI.xlua_tointeger(L, 4);
                    int _y = LuaAPI.xlua_tointeger(L, 5);
                    int _height = LuaAPI.xlua_tointeger(L, 6);
                    int _z = LuaAPI.xlua_tointeger(L, 7);
                    int _depth = LuaAPI.xlua_tointeger(L, 8);
                    UnityEngine.TextureFormat _dstFormat;translator.Get(L, 9, out _dstFormat);
                    System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest> _callback = translator.GetDelegate<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 10);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _mipIndex, _x, _width, _y, _height, _z, _depth, _dstFormat, _callback );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 9&& translator.Assignable<UnityEngine.Texture>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& translator.Assignable<UnityEngine.TextureFormat>(L, 9)) 
                {
                    UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture));
                    int _mipIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _x = LuaAPI.xlua_tointeger(L, 3);
                    int _width = LuaAPI.xlua_tointeger(L, 4);
                    int _y = LuaAPI.xlua_tointeger(L, 5);
                    int _height = LuaAPI.xlua_tointeger(L, 6);
                    int _z = LuaAPI.xlua_tointeger(L, 7);
                    int _depth = LuaAPI.xlua_tointeger(L, 8);
                    UnityEngine.TextureFormat _dstFormat;translator.Get(L, 9, out _dstFormat);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _mipIndex, _x, _width, _y, _height, _z, _depth, _dstFormat );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 10&& translator.Assignable<UnityEngine.Texture>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& translator.Assignable<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 9)&& translator.Assignable<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 10)) 
                {
                    UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture));
                    int _mipIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _x = LuaAPI.xlua_tointeger(L, 3);
                    int _width = LuaAPI.xlua_tointeger(L, 4);
                    int _y = LuaAPI.xlua_tointeger(L, 5);
                    int _height = LuaAPI.xlua_tointeger(L, 6);
                    int _z = LuaAPI.xlua_tointeger(L, 7);
                    int _depth = LuaAPI.xlua_tointeger(L, 8);
                    UnityEngine.Experimental.Rendering.GraphicsFormat _dstFormat;translator.Get(L, 9, out _dstFormat);
                    System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest> _callback = translator.GetDelegate<System.Action<UnityEngine.Rendering.AsyncGPUReadbackRequest>>(L, 10);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _mipIndex, _x, _width, _y, _height, _z, _depth, _dstFormat, _callback );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 9&& translator.Assignable<UnityEngine.Texture>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& translator.Assignable<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 9)) 
                {
                    UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture));
                    int _mipIndex = LuaAPI.xlua_tointeger(L, 2);
                    int _x = LuaAPI.xlua_tointeger(L, 3);
                    int _width = LuaAPI.xlua_tointeger(L, 4);
                    int _y = LuaAPI.xlua_tointeger(L, 5);
                    int _height = LuaAPI.xlua_tointeger(L, 6);
                    int _z = LuaAPI.xlua_tointeger(L, 7);
                    int _depth = LuaAPI.xlua_tointeger(L, 8);
                    UnityEngine.Experimental.Rendering.GraphicsFormat _dstFormat;translator.Get(L, 9, out _dstFormat);
                    
                        var gen_ret = UnityEngine.Rendering.AsyncGPUReadback.Request( _src, _mipIndex, _x, _width, _y, _height, _z, _depth, _dstFormat );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rendering.AsyncGPUReadback.Request!");
            
        }
        
        
        
        
        
        
		
		
		
		
    }
}
